package com.dkd.manage.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 工单对象 tb_task
 *
 * @author xwq
 * @date 2024-11-08
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@ApiModel(description = "工单对象")
public class Task extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工单ID */
    @ApiModelProperty(value = "工单ID", example = "1")
    private Long taskId;

    /** 工单编号 */
    @Excel(name = "工单编号")
    @ApiModelProperty(value = "工单编号")
    private String taskCode;

    /** 工单状态 */
    @Excel(name = "工单状态")
    @ApiModelProperty(value = "工单状态")
    private Long taskStatus;

    /** 创建类型 0：自动 1：手动 */
    @Excel(name = "创建类型 0：自动 1：手动")
    @ApiModelProperty(value = "创建类型 (0：自动, 1：手动)", allowableValues = "0, 1")
    private Long createType;

    /** 售货机编码 */
    @Excel(name = "售货机编码")
    @ApiModelProperty(value = "售货机编码")
    private String innerCode;

    /** 执行人id */
    @Excel(name = "执行人id")
    @ApiModelProperty(value = "执行人ID")
    private Long userId;

    /** 执行人名称 */
    @Excel(name = "执行人名称")
    @ApiModelProperty(value = "执行人名称")
    private String userName;

    /** 所属区域Id */
    @Excel(name = "所属区域Id")
    @ApiModelProperty(value = "所属区域ID")
    private Long regionId;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String desc;

    /** 工单类型id */
    @Excel(name = "工单类型id")
    @ApiModelProperty(value = "工单类型ID")
    private Long productTypeId;

    /** 指派人Id */
    @Excel(name = "指派人Id")
    @ApiModelProperty(value = "指派人ID")
    private Long assignorId;

    /** 地址 */
    @Excel(name = "地址")
    @ApiModelProperty(value = "地址")
    private String addr;
}